package com.example.shushiyunsst.fragment.main.home.child.miner22.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.math.BigDecimal;

public class SouYiDetailBean implements Serializable {

    public static final int WA_KONG_SOU_YI=18;


    public static final int TUI_GUANG=19;

    /**
     * blid : 53
     * walletAddress : 0xc3218c111132e70b05171e9c33af42d6ca2c14bf
     * tokenType : CML
     * txNums : 1
     * createTime : 2020-10-12 11:40:49
     * optType : 18
     * uid : 2
     */

    @JSONField(name = "blid")
    private int blid;

    @JSONField(name = "walletAddress")
    private String walletAddress;

    @JSONField(name = "tokenType")
    private String tokenType;

    @JSONField(name = "txNums")
    private BigDecimal txNums;

    @JSONField(name = "createTime")
    private String createTime;

    @JSONField(name = "optType")
    private int optType;

    @JSONField(name = "uid")
    private int uid;

    public String getName(){
        if (WA_KONG_SOU_YI  == optType){
            return  "持币挖矿收益";
        }else if (TUI_GUANG  == optType){
            return "推广收益";
        }else {
            return "";
        }
    }

    public int getBlid() {
        return blid;
    }

    public void setBlid(int blid) {
        this.blid = blid;
    }

    public String getWalletAddress() {
        return walletAddress;
    }

    public void setWalletAddress(String walletAddress) {
        this.walletAddress = walletAddress;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public BigDecimal getTxNums() {
        return txNums;
    }

    public void setTxNums(BigDecimal txNums) {
        this.txNums = txNums;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getOptType() {
        return optType;
    }

    public void setOptType(int optType) {
        this.optType = optType;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }
}
